import java.util.Random;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/3;
 * Otherwise, I don't know who created it either
 */

public class Question2 {
    public static void main(String[] args) {
        Random random = new Random();

        int[] arr = new int[10];

        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(10);
        }

        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0){
                System.out.println(arr[i]);
            }
        }
    }
}
